//
//  MVContents.m
//  __PRODUCTNAME__
//
//  Created by Hanlingyu on 16/08/15
//  Copyright (c) ltq. All rights reserved.
//

#import "MVContents.h"
#import "MVTableList.h"

@implementation MVContents

+ (NSDictionary *)objectClassInArray{
    return @{@"list" : [MVTableList class]};
}

- (void)setValue:(id)value forKey:(NSString *)key {
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"list"]) {
        NSMutableArray<MVTableList *> *tableListArr = [NSMutableArray array];
        for (NSDictionary *dict in value) {
            MVTableList *tableList = [MVTableList modelWithDict:dict];
            [tableListArr addObject:tableList];
        }
        _list = tableListArr;
    }
}

@end
